//
//  Restaurant.swift
//  FoodPin
//
//  Created by 王巍 on 16/5/5.
//  Copyright © 2016年 ww. All rights reserved.
//

import Foundation

struct Restaurant1 {
    
    var name: String
    var type: String
    var location: String
    var image: String
    var isVisited: Bool
    var rating = ""
    
    // 构造函数（可不写，但这里有rating）
    init(name: String, type: String, location: String, image: String, isVisited: Bool){
        self.name = name
        self.type = type
        self.location = location
        self.image = image
        self.isVisited = isVisited
    }
}

// let r1 = Restaurant(name: String, type: String, location: String, image: String, isVisited: Bool)